const { Controller } = require("uni-cloud-router");
module.exports = class CartController extends Controller {
  add(){
		const { ctx, service } = this;
    return this.service.cart.add();
  }
	list(){
		const { ctx, service } = this;
		return this.service.cart.list();
	}
	getByIDs(){
		const { ctx, service } = this;
		return this.service.cart.getByIDs();
	}
	edit(){
		const { ctx, service } = this;
		return this.service.cart.edit();
	}
	delete(){
		const { ctx, service } = this;
		return this.service.cart.delete();
	}
};